import request from '/@/utils/request';

export function fetchList(query?: Object) {
    return request({
        url: '/eletile-digital/dsconf/page',
        method: 'get',
        params: query,
    });
}

export function list(query?: Object) {
    return request({
        url: '/eletile-digital/dsconf/list',
        method: 'get',
        params: query,
    });
}

export function listTable(query?: Object) {
    return request({
        url: '/eletile-digital/dsconf/table/list',
        method: 'get',
        params: query,
    });
}

export function addObj(obj?: Object) {
    return request({
        url: '/eletile-digital/dsconf',
        method: 'post',
        data: obj,
    });
}

export function getObj(id?: string) {
    return request({
        url: '/eletile-digital/dsconf/' + id,
        method: 'get',
    });
}

export function delObj(ids?: Object) {
    return request({
        url: '/eletile-digital/dsconf',
        method: 'delete',
        data: ids,
    });
}

export function putObj(obj?: Object) {
    return request({
        url: '/eletile-digital/dsconf',
        method: 'put',
        data: obj,
    });
}
